package cn.net.asiacom.utils;

import org.apache.commons.lang3.StringUtils;

public class StrUtil extends StringUtils {

    /**
     * 替换字符串中的空格、全角空格、冒号和特殊空白字符、括号、中文括号、为标准字符
     * @param str 要进行替换的字符串
     * @return 替换后的字符串
     */
    public static String replace(String str) {
        return str
                .replaceAll(" ", "")
                .replaceAll("　", "")
                .replaceAll("：", ":")
                .replaceAll(" ", "")
                .replaceAll("（", "(")
                .replaceAll("）", ")")
                .replaceAll("\\uff08", "(")
                .replaceAll("\\uff09", ")")
                .replaceAll("￥", "¥");
    }
}
